# 定义 接口对象 层      查看 部门
import requests


class Depart1(object):
    def depart1(self,i,depart_body):
        req = requests.post(url="http://ihrm2-test.itheima.net/api/company/department",
                            headers=i,
                            json=depart_body)
        return req